﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NineMine.DataModel
{
    public class Comment
    {
        [Key]
        public long Id { get; set; }

        [MaxLength(30)]
        public string CommentedType { get; set; }

        //TODO: revisit
        public long CommentedId { get; set; }

        public User Author { get; set; }

        [Column(TypeName = "ntext")]
        public string Comments { get; set; }

        public DateTime CreatedOn { get; set; }

        public DateTime UpdatedOn { get; set; }
    }
}
